﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void GetAverageNumber_2numbersAsInput_ReturnAvarage()
        {
            //Arrange
            var number1 = 10;
            var number2 = 5;
            var expected = (10+5)/2.0;

            //Act
            var actual = ArduinoComController.ArduinoCom.GetAverageNumber(number1, number2);

            //Assert
            Assert.AreEqual(expected, actual);

        }
    }
}
